package gr.takeda.rhythmguitar.tools;

import static guitk.UILookAndFeel.*;
import gr.takeda.rhythmguitar.config.*;

import org.apache.log4j.*;

public class LookAndFeelManager {

	private static final Logger logger = Logger.getLogger(LookAndFeelManager.class);
	private static final Config cf = Config.getInstance();

	public static boolean updateUI() {
		try {
			javax.swing.UIManager.setLookAndFeel(getLookndFeelList()[cf.getLookAndFeel()]);
		} catch (Exception e) {
			logger.error("Exception in updateUI: " + e.getMessage());
			return false;
		}
		return true;
	}

}
